package com.vp.org.service;

import com.vp.org.pojo.BookInfo;
import com.vp.org.pojo.Collect;

import java.util.List;
import java.util.Map;

public interface BookService {

    List<BookInfo> findByHot();

    List<BookInfo> findByCondition(BookInfo info);

    List<BookInfo> findByDiscount();

    BookInfo findById(int id);

    List<Map<String, Object>> findForRemark(int id);

    BookInfo findByName(String name);

    @SuppressWarnings("UnusedReturnValue")
    int collectBook(int bookId, int userId);

    @SuppressWarnings("unused")
    List<Collect> queryAll(int id);

    int delete(int id);
}
